package service;

import model.data.Product;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import dao.ProductDao;
import dao.support.sql.SqlObject;

@Component
public class ProductService {
	@Autowired ProductDao pd;
	public void product_addTx(Product product)
	{
		pd.product_add(product);
	}
	public void product_deleteTx(String product_id)
	{
		pd.product_delete(product_id);
	}
	public Product product_foundbyidTx(String product_id)
	{
		return pd.product_foundbyid(product_id);
	}
	public void product_updateTx(Product product)
	{
		pd.product_update(product);
	}
	public String product_queryTx(SqlObject so)
	{
		return pd.product_query(so);
	}
}
